﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RushTracker.Core.Models.Torrents
{
    public class Information
    {
        public Information()
        {
            Id = -1;
            CreationDate = DateTime.Now;
            Files = new List<File>();
            AnnounceUrls = new List<AnnounceUrl>();
            Peers = new List<Peer>();
        }

        public virtual int Id { get; set; }
        public virtual string InfoHash { get; set; }
        public virtual string FileName { get; set; }
        public virtual long Size { get; set; }
        public virtual string Encoding { get; set; }
        public virtual string Comment { get; set; }
        public virtual string Pieces { get; set; }
        public virtual int PieceLength { get; set; }
        public virtual DateTime? CreationDate { get; set; }
        public virtual bool Private { get; set; }
        public virtual Torrent Torrent { get; set; }
        public virtual IList<File> Files { get; set; }
        public virtual IList<AnnounceUrl> AnnounceUrls { get; set; }
        public virtual IList<Peer> Peers { get; set; }
    }
}
